package day328;

import java.util.Arrays;
import java.util.Calendar;
import java.util.Scanner;

public class Stringtest1 {
    public static void main(String[] args) {
        Calendar time=Calendar.getInstance();
        time.set(2017,7-1,12);
        time.add(Calendar.YEAR,5);
        System.out.println("失效日期是："+time.getTime());
        System.out.printf("失效日期是：%tc%n",time.getTime());